
goog.provide('esn.dialog.NetworkCreatorDialog');

goog.require('esn.dialog.BaseDialog');
goog.require('esn.soy.dialog.networkCreatorDialog');


esn.dialog.NetworkCreatorDialog = function() {
  goog.base(this);

  this.setTitle('Instructions for Creating Your Network');
  this.setContent(esn.soy.dialog.networkCreatorDialog.content());
  this.setModal(true);
  this.setButtons([
    esn.dialog.BaseDialog.Button.START_NETWORK    
  ]);
};
goog.inherits(esn.dialog.NetworkCreatorDialog, esn.dialog.BaseDialog);

esn.dialog.NetworkCreatorDialog.prototype.enterDocument = function() {
  goog.base(this, 'enterDocument');

  this.getHandler().listen(
      this,
      esn.dialog.BaseDialog.EventType.START_NETWORK,
      this.handleStartClick_);
};

esn.dialog.NetworkCreatorDialog.prototype.handleStartClick_ = function(e) {
  this.setVisible(false);
};
